package com.android.inestpin.model.detail;

/**
 * Created by Administrator on 2016/9/5.
 */
public class addtocartdata {


    /**
     * flag : false
     * code : 100001
     * msg : 设置默认地址失败，请重试
     * data : null
     * time : 1473042352
     */

    private boolean flag;
    private int code;
    private String msg;
    private AddData data;
    private int time;

    public class AddData{
        private String is_selected;
        private int qty;
        private Res res;
        private String subtotal	;

        public String getIs_selected() {
            return is_selected;
        }

        public void setIs_selected(String is_selected) {
            this.is_selected = is_selected;
        }

        public int getQty() {
            return qty;
        }

        public void setQty(int qty) {
            this.qty = qty;
        }

        public Res getRes() {
            return res;
        }

        public void setRes(Res res) {
            this.res = res;
        }

        public String getSubtotal() {
            return subtotal;
        }

        public void setSubtotal(String subtotal) {
            this.subtotal = subtotal;
        }

        public class Res{
            private int cartNum;
            private String cart_total;
            private String subtotal	;
            private int subtotal_score;

            public int getCartNum() {
                return cartNum;
            }

            public void setCartNum(int cartNum) {
                this.cartNum = cartNum;
            }

            public String getCart_total() {
                return cart_total;
            }

            public void setCart_total(String cart_total) {
                this.cart_total = cart_total;
            }

            public String getSubtotal() {
                return subtotal;
            }

            public void setSubtotal(String subtotal) {
                this.subtotal = subtotal;
            }

            public int getSubtotal_score() {
                return subtotal_score;
            }

            public void setSubtotal_score(int subtotal_score) {
                this.subtotal_score = subtotal_score;
            }
        }
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }



    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public AddData getData() {
        return data;
    }

    public void setData(AddData data) {
        this.data = data;
    }
}
